package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 品牌表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_brand")
public class Brand implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 品牌ID
     */
    @TableId(value = "brand_id", type = IdType.AUTO)
    private Integer brandId;

    /**
     * 品牌名称
     */
    @TableField(value = "brand_name")
    @NotBlank(message = "品牌名称不能为空")
    private String brandName;

    /**
     * 使用数量
     */
    @TableField(value = "brand_use")
    private Integer brandUse;

    /**
     * 排序
     */
    @TableField(value = "brand_top")
    @NotNull(message = "排序不能为空")
    private Integer brandTop;

    /**
     * 状态;状态：0显示1隐藏
     */
    @TableField(value = "brand_status")
    @NotNull(message = "状态不能为空")
    private Integer brandStatus;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;
}